#coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from django import template
from django.db.models.aggregates import Count

from ..models import EnvironmentName, Host, Runapp, Appport

register = template.Library()

@register.assignment_tag
def get_environments():
    return EnvironmentName.objects.all()
